]> dgit.raspbian.org Git - gnome-shell.git/commit
st: Clean up scroll event code
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 19 Mar 2012 23:19:08 +0000 (00:19 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 24 Apr 2012 18:45:01 +0000 (20:45 +0200)
commit700c06023ee8409ae57458c3ecf77842e9553171
tree1a6d96612e526a31f09b98e8e1d87710cf376372
parent4fea5b5ca3f96756284138ff9fd88f2d34de6c37
st: Clean up scroll event code

Currently the scroll event code only handles scroll events if the
adjustment's value is within the "lower" and "upper" limits. The
likely intent was to pass events to a parent scroll view when
reaching the bounds (uh, nested scroll views!), but apparently
we never made use of this, as the upper bound is actually wrong
(an adjustment's maximum value is upper - page_size, not upper).
Just handle all scroll events unconditionally and rely on the
bound checks in StAdjustment.

https://bugzilla.gnome.org/show_bug.cgi?id=672413
src/st/st-scroll-bar.c
src/st/st-scroll-view.c